home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d14 / cppwin10.arc / CDLG1.CPP < prev    next >
C/C++ Source or Header  |  1991-01-11  |  670b  |  42 lines

  1. /***
  2.     Test class for testing the CDlg class
  3. ***/
  4.  
  5. #include <windows.h>
  6. #include "menudef.h"
  7.  
  8. // $HPP:Start
  9. /***
  10.     Test class for testing the CDlg class
  11.     Header file.
  12. ***/
  13.  
  14. #ifndef CDlg1_INC
  15. #define CDlg1_INC
  16.  
  17. #include "cdlg.hpp"
  18.  
  19. class CDlg1 : public CDlg {
  20.     public:
  21.         BOOL DoCommand(WORD ControlID, LONG lParam);
  22.         /*int DoDialog(HANDLE hInst, LPSTR lpDlgName, HWND hParent, LONG lParam);*/
  23.  
  24. };
  25. #endif
  26. // $HPP:End
  27.  
  28. BOOL CDlg1 :: DoCommand(WORD ControlID, LONG lParam)
  29. {
  30.     switch (ControlID) {
  31.     case IDOK:
  32.         EndDialog(hDialog, TRUE);
  33.         return TRUE;
  34.  
  35.     case IDCANCEL:
  36.         EndDialog(hDialog, FALSE);
  37.         return TRUE;
  38.     }
  39.     return FALSE;
  40. }
  41.  
  42.